﻿@model Project.Models.Entity_Propiedades.Apartamentos

@{
    ViewBag.Title = "Apartamento";
    Layout = "~/Views/Shared/_LayoutPublicaciones.cshtml";
}

<h2>Apartamento</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("AgregarApartamento","Propiedades",FormMethod.Post)) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Apartamentos</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Dormitorios)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Dormitorios)
            @Html.ValidationMessageFor(model => model.Dormitorios)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Baños)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Baños)
            @Html.ValidationMessageFor(model => model.Baños)
        </div>

        <div class="editor-label">
            <p>Cuarto de servicio?</p>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CuartoServicio_)
            @Html.ValidationMessageFor(model => model.CuartoServicio_)
        </div>

        <div class="editor-label">
            <p>Tiene acensor?</p>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Acensor_)
            @Html.ValidationMessageFor(model => model.Acensor_)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Parqueos)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Parqueos)
            @Html.ValidationMessageFor(model => model.Parqueos)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MetrosCuadrados)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MetrosCuadrados)
            @Html.ValidationMessageFor(model => model.MetrosCuadrados)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.propiedades.descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.propiedades.descripcion)
            @Html.ValidationMessageFor(model => model.propiedades.descripcion)
        </div>
        <p>
            <input type="submit" value="Continuar" />
        </p>
    </fieldset>
}
